﻿using Driven.ProcessScheduler;
using System.Threading;

namespace Driven.ProcessScheduler.Test
{
    public class TestScheduledComponent1 : IScheduledComponent
    {

        #region IScheduledComponent Members

        public string[] Execute()
        {
            Thread.Sleep(100);
            return new string[] { ToString() + " executed successfully" };
        }

        public override string ToString()
        {
            return "TestScheduledComponent1";
        }

        #endregion
    }

    public class TestScheduledComponent2 : IScheduledComponent
    {

        #region IScheduledComponent Members

        public string[] Execute()
        {
            Thread.Sleep(100);
            return new string[] { ToString() + " executed successfully" };
        }

        public override string ToString()
        {
            return "TestScheduledComponent2";
        }

        #endregion
    }
}